clear all
set more off

program main
    * *** Add required packages from SSC to this list ***
    local ssc_packages "fs" "estout" "blindschemes" "grstyle" "colrspace" "palettes" "boottest" "mmat2tex"
    * *** Add required packages from SSC to this list ***

    if !missing("`ssc_packages'") {
        foreach pkg in "`ssc_packages'" {
        * install using ssc, but avoid re-installing if already present
            capture which `pkg'
            if _rc == 111 {                 
               dis "Installing `pkg'"
					ssc install `pkg', replace
               }
        }
    }

end

main